/*
 *
 *  * Copyright (c) 2016. For Intelligent Group.
 *
 */

package com.intelligent.ispc.r.dto;


import com.intelligent.ispc.common.dto.AbstractValueObject;

/**
 * Created by Peter on 2016/7/12.
 */
public class NDStatisticsDto extends AbstractValueObject {
    private double avgValue = 0;
    private double minValue = 0;
    private double maxValue = 0;
    private double rangeValue = 0;
    private double stdValue = 0;
    private double uclValue = 0;
    private double lclValue = 0;
    private double dataCount = 0;

    private double kurtosisValue = 0;
    private double skewnessValue = 0;

    private double[] clValue = new double[7];

    /**
     * Format the value with decimal space.
     *
     * @param d source value.
     * @return result.
     */
    public String getDigValue(double d) {
        return String.format("%.6f", d);
    }

    public double getAvgValue() {
        return avgValue;
    }

    public void setAvgValue(double avgValue) {
        this.avgValue = avgValue;
    }

    public double getMinValue() {
        return minValue;
    }

    public void setMinValue(double minValue) {
        this.minValue = minValue;
    }

    public double getMaxValue() {
        return maxValue;
    }

    public void setMaxValue(double maxValue) {
        this.maxValue = maxValue;
    }

    public double getRangeValue() {
        return rangeValue;
    }

    public void setRangeValue(double rangeValue) {
        this.rangeValue = rangeValue;
    }

    public double getStdValue() {
        return stdValue;
    }

    public void setStdValue(double stdValue) {
        this.stdValue = stdValue;
    }

    public double getUclValue() {
        return uclValue;
    }

    public void setUclValue(double uclValue) {
        this.uclValue = uclValue;
    }

    public double getLclValue() {
        return lclValue;
    }

    public void setLclValue(double lclValue) {
        this.lclValue = lclValue;
    }

    public double getDataCount() {
        return dataCount;
    }

    public void setDataCount(double dataCount) {
        this.dataCount = dataCount;
    }

    public double getKurtosisValue() {
        return kurtosisValue;
    }

    public void setKurtosisValue(double kurtosisValue) {
        this.kurtosisValue = kurtosisValue;
    }

    public double getSkewnessValue() {
        return skewnessValue;
    }

    public void setSkewnessValue(double skewnessValue) {
        this.skewnessValue = skewnessValue;
    }

    public double[] getClValue() {
        return clValue;
    }

    public void setClValue(double[] clValue) {
        this.clValue = clValue;
    }
}
